package day13;

public class Person {

	
	public Person() {
		System.out.println("111");
	}
	public Person(int age) {
		if(age >=18) {
			this.age = age - 10;
		}else {
			this.age = age;
		}
	}
	public Person(int age,String name) {
		this.age = age;
		this.name = name;
		System.out.println("333");
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	private String name;
	private int age;
	

}
